package com.taijihuabao.modules.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.taijihuabao.common.commonutils.LongToStringSerializer;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 报销详情
 * @author xuejingtai
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("报销详情")
public class ChaimDetailEntity implements Serializable {

    /**
     * 报销详情主键主键
     */
    @ExcelIgnore
    @JsonSerialize(using = LongToStringSerializer.class)
    private Long id;

    /**
     * 报销编号
     */
    @ExcelIgnore
    private String chaimCode;

    /**
     * 费用日期
     */
    @ExcelProperty(index = 0,value = "消费日期")
    @JsonFormat(shape = JsonFormat.Shape.STRING,pattern="yyyy/MM/dd",timezone = "GMT+8")
    private Date detailDate;

    /**
     * 报销类型
     */
    @ExcelProperty(index = 1,value = "报销类型")
    private String chaimType;

    /**
     * 收据张数
     */
    @ExcelProperty(index = 2,value = "收据条数")
    private String documentNumber;

    /**
     * 具体单项金额
     */
    @ExcelProperty(index = 3,value = "报销金额")
    private double detailMoney;

    /**
     * 详情信息
     */
    @ExcelProperty(index = 4,value = "详情信息")
    private String information;

}
